﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using Common.Utilities.DLR;

namespace Workflows.Components.ETL
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    [OrmClass("DataCleaningRule", "DataCleaningRuleID", false)]
    public class DataCleaningRule
    {
        public Guid DataCleaningRuleID;
        public string RuleName;
        public string ObjectTypeNameToEvaluate;
        [OrmField("ExternalReferences",SqlDbType.Text,500,OrmFieldSerializationMethod.BinarySerialization)]
        public string[] ExternalReferences;
        [OrmField("CodeSnippet",SqlDbType.Text,2000,OrmFieldSerializationMethod.DefaultSerialization)]
        public string CodeSnippet;
        public DataFlowAction TrueAction;
        public DataFlowAction FalseAction;
    }
}
